/* pages/index/goodDetail/goodDetail.wxss */
page{
    background-color: var(--bgc-color-F0F0F0);
}
.good-img{
    width: 100%;
    height: 400rpx;
    animation: trans 1s linear;
}

@keyframes trans{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

.good-intro{
    margin: 10rpx 20rpx;
    .intro-box{
        height: auto;
        border-radius: 20rpx;
        overflow: hidden;
        background-color: #FFFFFF;
        padding:20rpx
    }
    .title-box{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        .title {
            font-size: 32rpx;
        }
        .share-box{
            display: flex;
            flex-direction: row;
            align-items: center;
        }
        .share-img{
            width: 50rpx;
            height: 50rpx;
        }
        .share{
            font-size: 26rpx;
            width:auto;
            padding:0 0;
            margin:0 0;
            background-color: white;
            color: #CCC;
            font-weight: 500;
        }
        // 解决小程序button边框问题
        button::after{
            border: 0;
        }
    }
    
    .intro {
        display: flex;
        flex-direction: row;
        padding-bottom: 10rpx;
        justify-content: space-between;
        .num{
            color:#ccc;
            font-size: 24rpx;
        }
        .price {
            color: red;
            font-weight: 600;
        }
    }
}

.good-detail{
    margin:20rpx 0;
    min-height: 200rpx;
    font-size: 28rpx;
    padding: 20rpx;
    border-radius: 20rpx;
    overflow: hidden;
    background-color: #FFFFFF;
    .detail-title{
        font-size: 30rpx;
        font-weight: 550;
        margin-bottom: 20rpx;
    }
}

.tabbar{
    width: 100%;
    height: 100rpx;
    background-color: #fff;
    position: fixed;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .cart-num{
        position: absolute;
        left: 60rpx;
        top: 10rpx;
    }
    .cart-img{
        width: 50rpx;
        height: 50rpx;
        padding-left: 20rpx;
    }
    .tabbar-btn{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        margin-right: 20rpx;
        width: 380rpx;
        height: 80rpx;
        text-align: center;
        border-radius: 40rpx;
        overflow: hidden;
        color: #ffffff;
        font-size: 28rpx;
        .addCart{
            width: 50%;
            height: 80rpx;
            line-height: 80rpx;
            background: linear-gradient(to right,  #FEC400 0%,#FD9800 100%);
        }
        .buy{
            width: 50%;
            height: 80rpx;
            line-height: 80rpx;
            background-color: #FE6F00!important;
        }
    }
}